import 'package:flutter/material.dart';
import 'package:flutter_video/task/video_page.dart';

class TaskPage extends StatefulWidget {
  @override
  State<StatefulWidget> createState() {
    return _TaskPageState();
  }
}

class _TaskPageState extends State<TaskPage> with TickerProviderStateMixin {

  @override
  void initState() {
    super.initState();
  }

  @override
  void dispose() {
    super.dispose();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          backgroundColor: Colors.red,
          title: Text("widget.title"),
        ),
        body: Center(
          child: VideoScreen(url:"http://liveplay-kk.rtxapp.com/live/program/live/cctv1hd/4000000/mnf.m3u8"),
        ),
      ),
    );
  }
}
